﻿<div ng-controller="playingController">
    <div class="wrapper border-bottom white-bg page-heading">
        <div class="col-lg-pull-12">
            <ol class="breadcrumb">
                <li>查看参与用户</li>
            </ol>
        </div>
    </div>
    <form class="form-horizontal row">
        <div class="form-group">
            <div class="col-sm-4">
                <label class="col-sm-5 control-label">用户</label>
                <div class="col-sm-7">
                    <input name="mobile" type="text" class="form-control input-sm" ng-model="query.mobile">
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-4">
                <div class="col-sm-offset-4 col-sm-8">
                    <button class="btn btn-primary btn-sm" ng-click="getUserGuessPlayingHiss()"><i class="fa fa-search"></i> 查询</button>
                </div>
            </div>
        </div>
    </form>
    <table style="table-layout:fixed;" class="table table-hover m-t-md">
        <thead>
            <tr style="background-color: #f7f7f9;">
                <th>序号</th>
                <th>用户</th>
                <th>参与次数</th>
                <th>竞猜队伍</th>
                <th>参与红钻</th>
                <th>获得红钻</th>
                <th>时间</th>
            </tr>
        </thead>
        <tbody ng-repeat="item in model.rows">
            <tr>
                <td>{{$index+1}}</td>
                <td>{{item.merchant.mobile}}</td>
                <td>{{item.guess_num}}</td>
                <td>{{item.guess_team_id == 0 ? "平局" : item.guess_team.title}}</td>
                <td>{{item.consume_red_drill}}</td>
                <td>{{item.get_red_drill}}</td>
                <td>{{item.create_time}}</td>
            </tr>
        </tbody>
    </table>
    <div class="row">
        <div class="col-md-12">
            <uib-pagination total-items="model.total_result" items-per-page="model.size" ng-model="model.page" num-pages="model.total_pages"
                            ng-change="userGuessPlayingHiss_page(model.page)" class="pagination-sm" boundary-links="true" boundary-link-numbers="true" max-size="20"
                            previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;"></uib-pagination>
            <span class="pull-right" style="margin: 30px 0px 20px 0px">共{{model.total_result}} 当前：{{model.page}}/{{model.total_pages}}</span>
        </div>
    </div>
</div>
